package com.home.Entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Proxy;

@Entity
@Proxy(lazy=false)
@Table(name="DKCALAMVIEC")
public class DKCaLamViec {
	
	@Id
	@Column(name="DKC_MASO")
	private long maSo;
	@Column(name="DKC_TUNGAY")
	private Date tuNgay;
	@Column(name="DKC_DENNGAY")
	private Date denNgay;
	@Column(name="DKC_GHICHU")
	private String ghiChu;
	
	@ManyToOne
	@JoinColumn(name="DKC_NHANVIEN")
	private NhanVien nhanVien;
	@ManyToOne
	@JoinColumn(name="DKC_CALAM")
	private CaLamViec caLam;
	public long getMaSo() {
		return maSo;
	}
	public void setMaSo(long maSo) {
		this.maSo = maSo;
	}
	public Date getTuNgay() {
		return tuNgay;
	}
	public void setTuNgay(Date tuNgay) {
		this.tuNgay = tuNgay;
	}
	public Date getDenNgay() {
		return denNgay;
	}
	public void setDenNgay(Date denNgay) {
		this.denNgay = denNgay;
	}
	public String getGhiChu() {
		return ghiChu;
	}
	public void setGhiChu(String ghiChu) {
		this.ghiChu = ghiChu;
	}
	public NhanVien getNhanVien() {
		return nhanVien;
	}
	public void setNhanVien(NhanVien nhanVien) {
		this.nhanVien = nhanVien;
	}
	public CaLamViec getCaLam() {
		return caLam;
	}
	public void setCaLam(CaLamViec caLam) {
		this.caLam = caLam;
	}
	
	
	
	
	
	
}